// 定义类型接口
export interface VideoItem {
    id: string;
    url: string;
    label: string;
    type: 'START' | 'STOP';
    duration: number;
    seep: number[][];
    seepReverse: number[][];
    sessionid?: number;
}

export interface SwitchResult {
    item: VideoItem | null;
    diff: number;
    nextStart: number | null;
}


export const StreamConfigurations: VideoItem[] = [
    {
        id: 'default',
        url: process.env.NEXT_PUBLIC_API_URL_ALIAS as string,
        label: "静默",
        type: 'STOP',
        duration: 20,
        seep: [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]],
        seepReverse: [[1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11], [12, 12], [13, 13], [14, 14], [15, 15], [16, 16], [17, 17], [18, 18], [19, 19], [20, 20]]
    },
    {
        id: 'start_one',
        url: process.env.NEXT_PUBLIC_API_URL_ALIAS_START_ONE as string,
        label: "视频1",
        type: 'START',
        duration: 20,
        seep: [[1, 4], [6, 8], [9, 12], [14, 18]],
        seepReverse: [[3, 7], [9, 12], [13, 15], [17, 20]]
    },
    {
        id: 'start_two',
        url: process.env.NEXT_PUBLIC_API_URL_ALIAS_START_TWO as string,
        label: "视频1",
        type: 'START',
        duration: 20,
        seep: [[1, 3], [4, 7], [8, 12], [13, 16], [17, 19]],
        seepReverse: [[2, 4], [5, 8], [9, 13], [14, 17], [18, 20]]
    },
    {
        id: 'start_three',
        url: process.env.NEXT_PUBLIC_API_URL_ALIAS_START_THREE as string,
        label: "视频1",
        type: 'START',
        duration: 20,
        seep: [[3, 6], [7, 9], [12, 15], [16, 20]],
        seepReverse: [[1, 5], [6, 9], [12, 14], [15, 18]]
    },
    {
        id: 'start_four',
        url: process.env.NEXT_PUBLIC_API_URL_ALIAS_START_FOUR as string,
        label: "视频1",
        type: 'START',
        duration: 20,
        seep: [[1, 4], [5, 8], [9, 13], [15, 18]],
        seepReverse: [[3, 6], [8, 12], [14, 16], [17, 20]]
    },
    // {
    //     id: 'start_five',
    //     url: process.env.NEXT_PUBLIC_API_URL_ALIAS_START_FIVE as string,
    //     label: "视频1",
    //     type: 'START',
    //     duration: 20,
    //     seep: [[1, 3], [5, 9], [10, 12], [13, 17]],
    //     seepReverse: [[4, 8], [9, 11], [12, 16], [18, 20]]
    // },
    // {
    //     id: 'start_six',
    //     url: process.env.NEXT_PUBLIC_API_URL_ALIAS_START_SIX as string,
    //     label: "视频1",
    //     type: 'START',
    //     duration: 20,
    //     seep: [[4, 7], [9, 12], [14, 16], [17, 20]],
    //     seepReverse: [[1, 4], [5, 7], [9, 12], [14, 17]]
    // },
];
